package cn.itsource.xhy.org.domain;

import cn.itsource.xhy.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data // 复合注解get、set、toString
@NoArgsConstructor // 无参构造
@AllArgsConstructor // 有参构造
public class Shop extends BaseDomain{

    private String name;
    private String tel;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date registerTime;
    /*0：待审核；1：通过；-1：驳回*/
    private Integer state;
    private String address;
    private String logo;
    private Long admin_id;
    private Employee admin;
}
